#!/bin/bash

case "$1" in
	start)
		sudo /etc/init.d/mythtv-backend start
	;;
	
	stop)
		sudo /etc/init.d/mythtv-backend stop
	;;
	
	restart)
		sudo /etc/init.d/mythtv-backend restart
	;;
	
	*)
		echo "Usage: $N {start|stop|restart}" >&2
		exit 1
	;;
esac

exit 0